.class Lcom/xingbook/group/activity/bn;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/group/activity/GroupTopicPublish;


# direct methods
.method constructor <init>(Lcom/xingbook/group/activity/GroupTopicPublish;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 11

    const/16 v10, 0xb

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/view/PublishRelativeLayout;->getTitle()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/view/PublishRelativeLayout;->getTitle()Ljava/lang/String;

    move-result-object v0

    const-string v1, " "

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/bo;->sendEmptyMessage(I)Z

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x9

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-string v4, "\u8bf7\u8f93\u5165\u6807\u9898\uff01"

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/group/activity/bo;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/view/PublishRelativeLayout;->getContent()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/view/PublishRelativeLayout;->getContent()Ljava/lang/String;

    move-result-object v0

    const-string v1, " "

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/bo;->sendEmptyMessage(I)Z

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x9

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-string v4, "\u56de\u590d\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\uff01"

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/group/activity/bo;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v1, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v1

    const-string v2, "-_-"

    invoke-virtual {v1, v10, v2}, Lcom/xingbook/group/activity/bo;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v1}, Landroid/os/Message;->sendToTarget()V

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_3
    :try_start_1
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v0

    iget v0, v0, Lcom/xingbook/group/view/PublishRelativeLayout;->b:I

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/bo;->sendEmptyMessage(I)Z

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0x9

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-string v4, "\u8bf7\u9009\u62e9\u4e00\u4e2a\u6807\u7b7e\uff01"

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/group/activity/bo;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    goto/16 :goto_0

    :cond_4
    invoke-static {}, Lcom/xingbook/group/c/a;->a()Lcom/xingbook/group/c/a;

    move-result-object v0

    sget-object v1, Lcom/xingbook/c/n;->e:Lcom/xingbook/b/a;

    invoke-virtual {v1}, Lcom/xingbook/b/a;->d()J

    move-result-wide v1

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v4}, Lcom/xingbook/group/activity/GroupTopicPublish;->f(Lcom/xingbook/group/activity/GroupTopicPublish;)Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v5}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/group/view/PublishRelativeLayout;->getTitle()Ljava/lang/String;

    move-result-object v5

    iget-object v6, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v6}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v6

    iget v6, v6, Lcom/xingbook/group/view/PublishRelativeLayout;->b:I

    iget-object v7, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v7}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v7

    invoke-virtual {v7}, Lcom/xingbook/group/view/PublishRelativeLayout;->getContent()Ljava/lang/String;

    move-result-object v7

    iget-object v8, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v8}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v8

    iget-object v8, v8, Lcom/xingbook/group/view/PublishRelativeLayout;->a:Ljava/util/ArrayList;

    iget-object v9, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v9}, Lcom/xingbook/group/activity/GroupTopicPublish;->b(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/view/PublishRelativeLayout;

    move-result-object v9

    invoke-virtual {v9}, Lcom/xingbook/group/view/PublishRelativeLayout;->getCurrentLimitId()I

    move-result v9

    invoke-virtual/range {v0 .. v9}, Lcom/xingbook/group/c/a;->a(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/util/ArrayList;I)Ljava/lang/String;

    move-result-object v0

    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "result:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    const-string v1, "\"result\":"

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x9

    const-string v2, ",\""

    invoke-virtual {v0, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    const-string v2, "10009"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v1, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v1

    const/16 v2, 0xb

    const-string v3, "message\":\""

    invoke-virtual {v0, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, 0xa

    const-string v4, "\"}"

    invoke-virtual {v0, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Lcom/xingbook/group/activity/bo;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    goto/16 :goto_0

    :cond_5
    const-string v0, "0"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/bo;->sendEmptyMessage(I)Z

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/xingbook/group/activity/bn;->a:Lcom/xingbook/group/activity/GroupTopicPublish;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicPublish;->e(Lcom/xingbook/group/activity/GroupTopicPublish;)Lcom/xingbook/group/activity/bo;

    move-result-object v0

    const/16 v1, 0xb

    const-string v2, "-_-"

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/group/activity/bo;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method
